package br.com.duosoftware.orcamento.daos;

import br.com.duosoftware.orcamento.entidades.TipoServico;
import java.util.List;

/**
 *
 * @author Renato
 * 
 */
public class TipoServicoDAO  extends DAOGenerico {

    public void salvarOuAtualizar(TipoServico tipoServico) {
        super.salvarOuAtualizarPojo(tipoServico);
    }

    public void excluir(TipoServico tipoServico) {
        excluirPojo(tipoServico);
    }

    public TipoServico getTipoServicoPorId(int id) {
        return getPojo(TipoServico.class, id);
    }

    public List<TipoServico> listarTipoServico() {
        return getPojos("FROM TipoServico tipoServico "
                      + "ORDER BY tipoServico.id");
    }
}
